/**
 * Created by 小敏哥 on 2017/3/22.
 */
/**
 * Created by 小敏哥 on 2017/3/22.
 */
import React, {Component} from 'react';
import style from './iconText.scss';

class IconText extends Component {

    getMainClass(){
        return this.props.className?style.iconText+' '+this.props.className:style.iconText;
    }

    render() {
        return  <div className={this.getMainClass()}><img src={this.props.imgUrl}/><span>{this.props.text}</span></div>
    }
}

export default IconText